package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 安慕希
 * Date: 2025-03-16
 * Time: 17:05
 */
final public class Cat extends  Animal{
    String name = "肥波";
   //加了final之后就无法被继续继承了
   public void miaow(){
       System.out.println("喵呜");
   }

    @Override
    public void eat() {
        System.out.println(this.name+"正在吃猫粮");
    }

    public void sleep(){
       System.out.println(this.name+"is Sleeping");
   }



   public void fuction(Cat cat){
       System.out.println("参数的传递");
   }
}
